← Index
NYTProf Performance Profile   
For starman worker -M FindBin --max-requests 50 --workers 2 --user=kohadev-koha --group kohadev-koha --pid /var/run/koha/kohadev/plack.pid --daemonize --access-log /var/log/koha/kohadev/plack.log --error-log /var/log/koha/kohadev/plack-error.log -E deployment --socket /var/run/koha/kohadev/plack.sock /etc/koha/sites/kohadev/plack.psgi
  Run on Fri Jan 8 14:31:06 2016
Reported on Fri Jan 8 14:33:30 2016

Filename(eval 1118)[/usr/share/perl5/CGI.pm:932]
StatementsExecuted 50 statements in 316µs
Eval Invoked At/usr/share/perl5/CGI.pm line 932
Sibling evals1, 2, 3, 4, 5, 6
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1343709µs5.44msCGI::::cookieCGI::cookie
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
# spent 5.44ms (709µs+4.73) within CGI::cookie which was called 13 times, avg 418µs/call: # 4 times (153µs+2.05ms) by C4::Auth::checkauth at line 775 of C4/Auth.pm, avg 550µs/call # 4 times (161µs+1.81ms) by C4::Search::History::get_from_session at line 201 of C4/Search/History.pm, avg 494µs/call # 4 times (353µs+453µs) by C4::Auth::checkauth at line 883 of C4/Auth.pm, avg 202µs/call # once (42µs+416µs) by CGI::Compile::ROOT::home_vagrant_kohaclone_circ_ysearch_2epl::__ANON__[/home/vagrant/kohaclone/circ/ysearch.pl:115] at line 42 of circ/ysearch.pl
package CGI; sub cookie {
2564µs2192µs my($self,@p) = self_or_default(@_);
# spent 92µs making 21 calls to CGI::self_or_default, avg 4µs/call
35134µs21449µs my($name,$value,$path,$domain,$secure,$expires,$httponly) =
# spent 449µs making 21 calls to CGI::Util::rearrange, avg 21µs/call
4 rearrange([NAME,[VALUE,VALUES],PATH,DOMAIN,SECURE,EXPIRES,HTTPONLY],@p);
5
659µs require CGI::Cookie;
7
8 # if no value is supplied, then we retrieve the
9 # value of the cookie, if any. For efficiency, we cache the parsed
10 # cookies in our state variables.
1152µs unless ( defined($value) ) {
12450µs176.27ms $self->{'.cookies'} = CGI::Cookie->fetch;
# spent 6.27ms making 17 calls to CGI::Cookie::fetch, avg 369µs/call
13
14 # If no name is supplied, then retrieve the names of all our cookies.
1543µs return () unless $self->{'.cookies'};
1641µs return keys %{$self->{'.cookies'}} unless $name;
17423µs171.12ms return () unless $self->{'.cookies'}->{$name};
# spent 1.12ms making 17 calls to CGI::Cookie::as_string, avg 66µs/call
18420µs1726µs return $self->{'.cookies'}->{$name}->value if defined($name) && $name ne '';
# spent 26µs making 17 calls to CGI::Cookie::value, avg 2µs/call
19 }
20
21 # If we get here, we're creating a new cookie
221600ns return undef unless defined($name) && $name ne ''; # this is an error
23
241200ns my @param;
251700ns push(@param,'-name'=>$name);
261400ns push(@param,'-value'=>$value);
271100ns push(@param,'-domain'=>$domain) if $domain;
2810s push(@param,'-path'=>$path) if $path;
2910s push(@param,'-expires'=>$expires) if $expires;
301200ns push(@param,'-secure'=>$secure) if $secure;
311600ns push(@param,'-httponly'=>$httponly) if $httponly;
32
3317µs4256µs return CGI::Cookie->new(@param);
# spent 256µs making 4 calls to CGI::Cookie::new, avg 64µs/call
34}
35
36;